#include <iostream>
#include <QApplication>
#include "chip8.h"
#include "Monitor64x32GL.h"
#include "Monitor64x32.h"



int main(int argc,char *argv[]) {
    if(argc<1){
        std::cout << "Input a game file\n eg: CHIP8_Simulator \"./Breakout (Brix hack) [David Winter, 1997].chip8\"" << std::endl;
    }
    std::cout << "Hello, World!" << std::endl;
    QApplication app(argc,argv);
    CHIP8 chip8;
    chip8.initialize();
    std::cout<<argv[1]<<std::endl;
    chip8.loadGame(argv[1]);
    Monitor64x32 monitor64X32;
    monitor64X32.link_cpu(chip8);
    monitor64X32.show();
    return app.exec();
}
